﻿<MDCard Href="@("/entries/index/" + Model.Id)" Class="h-100" Style="display: flex; flex-direction: column;">
    @if (Model.Type == EntryType.Game || Model.Type == EntryType.ProductionGroup)
    {
        <div style="display: flex;">
            <img class="img-fluid" src="@Model.MainImage" alt="@Model.Name">
        </div>
        <div class="pa-3">
            <div class="name text-truncate-1 title-large mb-1">@Model.Name</div>
            <div class="brief text-truncate-3 label-large">@Model.BriefIntroduction</div>
        </div>
    }
    else
    {
        <div class="pa-3">
            <div style="width: 50%; margin-right: auto; margin-left: auto;display: flex;">
                <img class="img-fluid" src="@Model.MainImage" style=" border-radius: 50%;">
            </div>
            <div class="pt-3">
                <div class="name text-center text-truncate-1 title-large mb-1">@Model.Name</div>
                <div class="brief text-center  text-truncate-3 label-large">@Model.BriefIntroduction</div>
            </div>
        </div>
    }
</MDCard>



@code {
    [Parameter]
    public EntryInforTipViewModel Model { get; set; }
}
